package com.orchard.orchardfarmmanagementsystem.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TaskFetchDTO {

    private Integer id;
    private String name;
    private String description;
    @JsonFormat(pattern = "yyyy-MM-d HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdAt;
    @JsonFormat(pattern = "yyyy-MM-d HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endDate;
    private String orchardInfo;
    private String materialsTools;
    private List<String> assignees; // 使用列表来存储多个负责人
    private String status;
}
